# 上传缺失文件到远程服务器
$server = "root@100.150.0.161"
$port = "6233"
$remotePath = "~/KWDB-sdk"

# 上传server目录的关键文件
Write-Host "上传server/pom.xml..."
Get-Content "server/pom.xml" | ssh -p $port $server "cat > $remotePath/server/pom.xml"

Write-Host "上传proto/kwdb.proto..."
Get-Content "proto/kwdb.proto" | ssh -p $port $server "cat > $remotePath/proto/kwdb.proto"

Write-Host "上传测试脚本..."
scp -P $port test_runner.py $server`:$remotePath/
scp -P $port test_with_dataset.py $server`:$remotePath/

Write-Host "文件上传完成！"

